#ifndef __PUBLIC_H__
#define __PUBLIC_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "debug.h"
#include "keys.h"
#include "sig-manager.h"

#define KEYS "/dev/keys"

#define true  1
#define false 0

#define PRESSED  0
#define RELEASED 1

  /* signal define */
  struct key_info
  {
    int dev;
  };

  int xy_key_open();
  int xy_popen(char *);
  int xy_popen_with_result(char * cmd, char * cmd_result, int result_len);
  int xy_key_press_thread_run();
  void xy_u_eject();

#ifdef __cplusplus
}
#endif

#endif /* __PUBLIC_H__ */
